import 'package:qr_code_app/generated/route/qr_code_app_route.dart';
import 'package:qr_code_app/module/diary/home_page.dart';
import 'package:qr_code_app/module/diary/publish_log_page.dart';
import 'package:todo_flutter/todo_flutter.dart';

class MainRouter {
  ///注册路由
  static void init() {
    RouterUtil.instance.addRoute(QrCodeAppRoute.homePage,
        (Map<String, dynamic> map) {
      return const MyHomePage();
    });
    RouterUtil.instance.addRoute(QrCodeAppRoute.publishLogPage,
        (Map<String, dynamic> map) {
      return const PublishLogPage();
    });
  }
}
